package cn.lix.sc.rpc.oauth2;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

/**
 * http://www.ruanyifeng.com/blog/2014/05/oauth_2_0.html
 */
@SpringBootApplication
@MapperScan("cn.lix.sc.rpc.oauth2.dao")
public class OAuth2Application {

    public static void main(String[] args) {
        SpringApplication.run(OAuth2Application.class, args);
        System.out.println(new BCryptPasswordEncoder().encode("secret"));
    }

}
